home *** CD-ROM | disk | FTP | other *** search
- //***************************************************************************
- //
- // Experimental DSK loader for CONF=2 applications
- // Compile & link LOADER.CPP and MDM_DVR2.CPP (I used the large model)
- //
- // This loader is intended for use with a special bootloader: MDM_COM2.DSK
- // This bootloader loads code for a CONF=2 memory allocation
- //***************************************************************************
- #include <math.h>
- #include <float.h>
- #include <dos.h>
- #include <stdio.h>
- #include <conio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <graphics.h>
- #include <bios.h>
- #include "dsk_drv2.h"
-
- int port_no, baud;
- unsigned int ENTRY;
-
- void main(int argc, char **argv)
- {
-
- baud = 1;
- port_no = 0x3f8; // COM1 default
-
- if(argc<2) {
- printf("Missing command-line parameter\n");
- exit(0);
- }
-
- load_file(0,""); // Boot MDM_COMM.DSK (basic I/O kernal)
- ENTRY = load_file(2, argv[1]);
- execute(ENTRY);
-
- }
-